<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
      <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
 	  <%@ taglib prefix="tiles" uri="http://tiles.apache.org/tags-tiles" %>  
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<script type="text/javascript">
	$(document).ready(function(){
		
		$("#suchBtn").click(function(){
			var method=$("#method").val();
			var values=$("#values").val();
			alert(values);
			location.href="${initParam.root}/manage/suchmemberManage.do?method="+method+"&value="+values;
		});
	});
</script>

</head>
<body>
<h1><a href="${initParam.root}/manage/manage.do">Manage</a> &nbsp;&nbsp;회원관리 &nbsp;&nbsp;<a href="${initParam.root}/manage/groupManage.do">그룹관리</a> </h1>
<br>
<center>
<table id ="viewT" border="2" cellpadding="2">
<tr><td>ID</td><td>Level</td><td>Ssn</td><td>Nick</td><td>Name</td><td>Address</td><td>Tel</td><td>Point</td></tr>
<c:forEach items="${requestScope.lvo.list}" var="list">
<tr><td><a href="${initParam.root}/manage/memberInfoById.do?id=${list.id }">${list.id }</a></td><td>${list.level }</td><td>${list.ssn }</td><td>${list.nick}</td><td>${list.name}</td><td>${list.address}</td><td>${list.tel}</td><td>${list.point}</td></tr>
</c:forEach>
</table>

<br>
<select id="method" name="method">
	<option value="">----</option>
	<option value="id">ID</option>
	<option value="level">Level</option>
	<option value="name">Name</option>
	<option value="address">Address</option>
</select> &nbsp;&nbsp;&nbsp;

<input type="text" id="values"> &nbsp;&nbsp;&nbsp;<input type="button" id="suchBtn" value="검색">

</center>
</body>
</html>